From: | Jonathan Day |
Date: | 23 Sep 2001 at 18:11:55 |
Subject: | [amigactive] html: how to close a window...? |
Hi
I want to create a link on my website so that when the link is followed, a
new window is opened and the user is transported to someone else's website,
BUT with a small banner along the top with the logo of my site, a couple of
lines of text, and a couple of links: one link to remove the banner, the
other to close the window.
So far I have got everything working by using 2 frames, my only problem is
creating a text link within the "banner frame" that will close the window.
How do I do this, I guess it's javascript?
I found an example:
<a href="javascript:window.close()">close me</a>
but I've two problems with it, pressumably cos I've missed something:
1. In IE it brings up a message box saying: "the web page you are viewing is
trying to close the window. Do you want to close the window?"
2. It only works like the above if i view the "banner" html page, i.e. it
does not work (nothing happens) if viewing the page that combines the banner
AND the page I'm linking to.
Any help would be appreciated.
Jon
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Pinpoint the right security solution for your company- Learn how to add 128- bit encryption and to authenticate your web site with VeriSign's FREE guide!
http://us.click.yahoo.com/JNm9_D/33_CAA/yigFAA/dpFolB/TM
---------------------------------------------------------------------~->
Quote carefully and read all ADMIN:README mails
To unsubscribe mailto:amigactive-unsubscribe@yahoogroups.com
Anyone sending unsubscribe messages to the list will be SHOT!
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/